#if !SERVER
using UnityEngine;

namespace ActorSystem
{
    public interface IActorStart
    {
        void OnStart();
    }

    public interface IActorEnable
    {
        void OnEnable();
    }

    public interface IActorDisable
    {
        void OnDisable();
    }

    public interface IActorOnTriggerEnter
    {
        /// <summary>
        /// 当进入碰撞触发器
        /// </summary>
        /// <param name="other"></param>
        void OnTriggerEnter(Collider other);
    }

    public interface IActorOnTriggerExit
    {
        /// <summary>
        /// 当退出碰撞触发器
        /// </summary>
        /// <param name="other"></param>
        void OnTriggerExit(Collider other);
    }

    public interface IActorOnCollisionEnter
    {
        /// <summary>
        /// 当进入碰撞器
        /// </summary>
        /// <param name="collision"></param>
        void OnCollisionEnter(Collision collision);
    }

    public interface IActorOnCollisionExit
    {
        /// <summary>
        /// 当退出碰撞器
        /// </summary>
        /// <param name="collision"></param>
        void OnCollisionExit(Collision collision);
    }
}
#endif